<?php

/**
 * This is the model class for table "financial_type".
 *
 * The followings are the available columns in table 'financial_type':
 * @property integer $id ID
 * @property string $name 财务类型名称
 */
class FinancialType extends ActiveRecord
{
	/**
	 * 收入
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_INCOME = 1;
	/**
	 * 支出
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_PAY = 2;
	/**
	 * Returns the static model of the specified AR class.
	 * @return FinancialType the static model class
	 */
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	
	public function getMdcClass() {
		return 'application.models.metadata.FinancialTypeMetadata';
	}
}